package chase.myrewards;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 * Stubbed activity that represents what should be account login and authentication
 * The login button just takes you to the info page.  Nothing else is done.
 * 
 * @author Meena Abdou
 *
 */
public class AccountLoginActivity extends Activity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.accountlogin);
			
		Button loginBtn = (Button) findViewById(R.id.btnLogin);
		loginBtn.setOnClickListener(new View.OnClickListener() {    	
			public void onClick(View v) {
				MyRewardsClient.getInstance().setLoggedIn(true);
				// Start display activity
				Intent i = new Intent(getApplicationContext(), InfoActivity.class);
				startActivity(i);
				finish();
			}
		});
	}
}
